package cn.gson.work.model.mapper;

import cn.gson.work.model.pojos.User;
import cn.gson.work.model.vo.UserQuery;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UserMapper {
    /**
     * 根据条件查询用户信息
     * @param query
     * @return
     */
    public List<User> getUserByQuery(UserQuery query);

    /**
     * 新增用户信息
     * @param user
     */
    public void addUser(User user);

    /**
     * 修改用户信息
     * @param user
     */
    public void editUser(User user);
}
